package in.ac.dei.edrp.cms.common.utility;

import in.ac.dei.edrp.cms.domain.activitymaster.StartActivityBean;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class UpdateProcessAndActivity extends SqlMapClientDaoSupport{

	public boolean updateProcessStartDate(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateProcessStartDate", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
	public boolean updateProcessEndDate(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateProcessEndDate", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
	public boolean updateActivityStartDate(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateActivityStartDate", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
	public boolean updateActivityEndDate(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateActivityEndDate", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
	public boolean updateProcessStatus(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateProcessStatus", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
	public boolean updateActivityStatus(StartActivityBean startActivityBean){
		boolean b=false;
		try{
			int x=getSqlMapClientTemplate().update("startActivity.updateActivityStatus", startActivityBean);
		}catch(Exception e){
			System.out.println("Exception is "+e.getMessage());
		}
		return b;
	}
	
}
